package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface SetmealDao {
    void add(Setmeal setmeal);

    void setSetmealAndCheckGroup(@Param("setmealId") Integer setmealId,@Param("checkgroupId") Integer checkgroupId);

    Page<Setmeal> findPage(@Param("queryString") String queryString);

    List<Setmeal> getSetmeal();

    Setmeal findById(Integer id);

    List<Map<String, Object>> findsetmealCount();

    List<Integer> findGroupIdBySetmealId(Integer id);

    String findImgBysetmealID(Integer id);

    void edit(Setmeal setmeal);

    void deleteAssociation(Integer id);

    void delete(Integer id);

    List<Map<String, Object>> findSetmealIncomeStatistics();

    List<Map<String,Object>> findMemberBySetmeal(String telephone);

    Setmeal findSetmealById(Integer id);

    List<Map<String,Object>> findByPage(@Param("startTime")  Date startTime, @Param("endTime") Date endTime,@Param("telePhone") String telePhone);

    List<Setmeal> findAll();
}
